<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%String path=request.getContextPath(); %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查看</title>
<style type="text/css">
	.clear{clear:both;}
</style>
</head>
<body>
	<h2 style="text-align: center">用户展示</h2>
	<a href="index/add.jsp" style="padding-left: 40%">用户添加</a>
	<div style="height: 50px;"></div>
	<table border="1" style="margin-left: 25%;width: 50%">
		<tr>
			<td>id</td>
			<td>名字</td>
			<td>密码</td>
			<td>性别</td>
			<td>操作</td>
		</tr>
		<c:forEach varStatus="vs" var="it" items="${list}">
			<tr>
				<td>${it.id }</td>
				<td>${it.loginname }</td>
				<td>${it.password }</td>
				<td>${it.sex }</td>
				<td>
					<a href="<%=path %>/StuPreUpdateAction?id=${it.id}">修改</a>
					<a href="<%=path %>/StuDeleteAction?id=${it.id}">删除</a>
				</td>
			</tr>
		</c:forEach>
		
	</table>

</body>
</html>